package com.yunqing.restkeeper.store.api.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 挂账单位人员
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Schema(name = "CreditCompanyUser", description = "挂账公司人员")
@TableName(value = "t_credit_company_user")
public class CreditCompanyUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(name = "id", description = "主键id")
    private String id;

    @Schema(name = "creditId", description = "挂账公司关联id")
    @TableField(value = "credit_id")
    private String creditId;

    @Schema(name = "userName", description = "用户名")
    @TableField(value = "user_name")
    private String userName;

    @Schema(name = "phone", description = "手机号")
    @TableField(value = "phone")
    private String phone;

    @Schema(name = "lastUpdateTime", description = "最后更新时间")
    @TableField(value = "last_update_time", fill = FieldFill.INSERT_UPDATE)
    protected LocalDateTime lastUpdateTime;

    @Schema(name = "CreditCompanyUser", description = "所属商户id")
    @TableField(value = "shop_id")
    protected String shopId;

    @Schema(name = "store_id", description = "门店id")
    @TableField(value = "store_id")
    protected String storeId;
}
